package com.zhentao.day05.pm;

import java.nio.charset.Charset;
import java.util.Set;
import java.util.SortedMap;

public class CharsetTest {
  public static void main(String[] args) {
    Charset cs = Charset.forName("GBK"); // new
    // System.out.println("cs.displayName() = " + cs.displayName());


    SortedMap<String, Charset> map = Charset.availableCharsets();

    Set<String> set = map.keySet();

    // for (String s : set) {
    //   System.out.println("s = " + s);
    // }
    System.out.println("Java里面可以支持的字符集合的数量是 :" + set.size());

  }
}
